/**
 *  订单管理
 *
 */
import request from "@/utils/request";

// 列表
export function lists(params) {
  return request({
    url: "/manage/order/lists",
    method: "get",
    params,
  });
}

// 详情
export function info(params) {
  return request({
    url: "/manage/order/info",
    method: "get",
    params,
  });
}

// 导出
export function change(data) {
  return request({
    url: "/manage/order/change",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

// 配送
export function deliver(data) {
  return request({
    url: "/manage/order/deliver",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

// 退款
export function refund(data) {
  return request({
    url: "/manage/order/refund",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

// 导出
export function orderExport(params) {
  return request({
    url: "/manage/order/export",
    method: "get",
    params,
  });
}
